#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from flask import Flask

app = Flask(__name__)


# 接收一个整数
@app.route("/<int:number>")
def get_intNumber(number):
    return f"the int is {number}"


# 接收一个小数
@app.route("/<float:number>")
def get_floatNumber(number):
    return f"the float is {number}"


# 接收一个字符串
@app.route("/<path:number>")
def get_pathNumber(number):
    return f"the path is {number}"


if __name__ == "__main__":
    app.run(debug=True)
